package com.zzyl.nursing.controller.member;

import com.zzyl.common.core.controller.BaseController;
import com.zzyl.common.core.domain.AjaxResult;
import com.zzyl.common.core.page.TableDataInfo;
import com.zzyl.nursing.domain.NursingProject;
import com.zzyl.nursing.dto.ObjectMemberDto;
import com.zzyl.nursing.service.INursingProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Auther: houxiaohuan
 * @Date: 2025/8/28 - 08 - 28 - 11:32
 * @Description: com.zzyl.nursing.controller.member
 * @version: 1.0
 */
@RestController
@RequestMapping("/member/orders/project")
public class ObjectMemberController extends BaseController {
    @Autowired
    private INursingProjectService iNursingProjectService;
    /**
     * 分页查询护理项目列表
     */
    @GetMapping("/page")
    public TableDataInfo list(ObjectMemberDto objectMemberDto){

        TableDataInfo  list = iNursingProjectService.selectPage(objectMemberDto);
        return list;
    }
    /**
     * 根据编号查询护理项目信息
     */
    @GetMapping("/{id}")
    public AjaxResult getInfo(@PathVariable Long id)
    {
        return success(iNursingProjectService.selectNursingProjectById(id));
    }
}
